Skip to content

Conversation

kpatl1
Copy link
Collaborator

@kpatl1 kpatl1 commented Sep 15, 2025

Summary
Added multiline comment folding support for SAS files. Users can now collapse/expand multiline comment blocks (/* ... */) using folding arrows in the editor margin, matching the existing folding behavior for data steps and procs.

Testing

  • Created test file with various multiline comment scenarios (standalone comments, comments within code blocks)
  • Verified folding arrows appear for multiline comments spanning multiple lines
  • Confirmed single-line comments do not show folding arrows (expected behavior)
  • Tested in Extension Development Host to ensure functionality works correctly
  • Validated that existing code block folding (data steps, procs) remains unaffected

Fixes #1579

@kpatl1 kpatl1 requested review from scottdover and scnwwu September 15, 2025 19:51
@kpatl1 kpatl1 marked this pull request as ready for review September 15, 2025 19:55
Copy link
Member

@scnwwu scnwwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess all comment tokens will go through this function
https://github.com/sassoftware/vscode-sas-extension/blob/main/server/src/sas/SyntaxProvider.ts#L254
SyntaxProvider can collect all multiline comments and provide an API for consumers to get.

@scnwwu
Copy link
Member

scnwwu commented Sep 18, 2025

I guess all comment tokens will go through this function https://github.com/sassoftware/vscode-sas-extension/blob/main/server/src/sas/SyntaxProvider.ts#L254 SyntaxProvider can collect all multiline comments and provide an API for consumers to get.

Hi @kpatl1, have you seen my comment above? I guess it can be a uniform way to collect all comment tokens.

Copy link
Member

@scnwwu scnwwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall good to me. Thanks!

@scnwwu scnwwu added this to the 1.18.0 milestone Sep 25, 2025
@enzhihpp enzhihpp assigned Zhirong2022 and unassigned enzhihpp Sep 25, 2025
@Zhirong2022 Zhirong2022 added testing Test the pull requests and removed verification-needed labels Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Test the pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collapsing Comment Blocks
4 participants